//
//  ChoiceController.swift
//  微博项目
//
//  Created by admin on 16/3/7.
//  Copyright © 2016年 jin. All rights reserved.
//

import UIKit

class ChoiceController: NSObject {
    class func chooseController()
    {
        // 设置window根控制器
        let oldVersion = NSUserDefaults.standardUserDefaults()
        if oldVersion.valueForKey("versionKey") == nil || "\(oldVersion.valueForKey(versionKey)!)" != "\(NSBundle.mainBundle().infoDictionary!["CFBundleVersion"]!)"
        {
            let newfeature = NewfeatureController()
            UIApplication.sharedApplication().keyWindow!.rootViewController = newfeature
        }
        else
        {
            let tableBar = JinTabbarController()
            tableBar.setAllTabBarItem()
            UIApplication.sharedApplication().keyWindow!.rootViewController = tableBar
        }
    }
}
